package mil.af.amc.adpetracker.service;

import mil.af.amc.adpetracker.exceptions.FileException;
import mil.af.amc.adpetracker.exceptions.ModelNotFoundException;
import mil.af.amc.adpetracker.model.Model;

import java.util.List;
import java.util.Map;

/**
 * Interface for Model Service
 *
 * @author TSgt Jason Ferguson
 */

public interface ModelService {

    Model getById(int id);

    List<Model> getAll();

    List<Model> getAllByModel(int modelId);

    List<Model> getAllByManufacturer(int manufacturerId);

    void createModel(Map modelMap) throws FileException;

    void editModel(Map modelMap) throws FileException, ModelNotFoundException;

}
